﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp5
{
    class staff
    {
        public string userID;
        public string userName;
        public string department;

        public string UserID
        {
            get { return this.userID; }
            set { this.userID = value; }
        }
        public string UserName
        {
            get { return this.userName; }
            set { this.userName = value; }
        }
        public string Department
        {
            get { return this.department; }
            set { this.department = value; }
        }
        public staff()
        {
        }
        public void staff1()
        {
            Console.WriteLine("用户工号为：{0}，用户名为：{1}，部门为：{2}", userID, userName, department);
        }
        public staff(string UserID, string userName, string department)
        {
            this.userID = UserID;
            this.userName = UserName;
            this.department = Department;
        }
    }
}
